<?php TPL::output('global/header.tpl.htm'); ?>
<div class="bd pbd">
  <!--right_nav_s-->
 	<?php TPL::output('topic/sidebar.tpl.htm');?>
  <!--right_nav_e-->
  <!--left_nav_s-->
  <div class="contant_left pfo DIS_top discussion_element">

	<div id="Manytopics" class="shd">
		<div class="add_C" id="addtxt">
		<?php if($this->topic_parent_list){ ?>
		<?php foreach($this->topic_parent_list as $key => $val){ ?>
		<span val="<?php echo $val['topic_title']; ?>" id="<?php echo $val['topic_id']; ?>"><a href="topic/<?php echo $val['topic_title']; ?>" rel="<?php echo $val['topic_id']; ?>" title="<?php echo $val['topic_title']; ?>" onmouseover="eventstalk(this);"><?php echo $val['topic_title']; ?></a><em onclick="removeChilds(this)" class="hide">x</em></span>
		<?php } ?>
		<?php } ?>
		</div>
	</div>

    <ul class="ur default_anwsion" >
      <li class="lr" onmouseover="elementClickEvent.letter.default_Evs(event);" ><img src="<?php if($this->topic_info['topic_pic']){?><?php echo get_setting('upload_url').'/topic/'.
str_replace(AWS_APP::config()->get('image')->topic_thumbnail['min']['w'].'_'.AWS_APP::config()->get('image')->topic_thumbnail['min']['h'], AWS_APP::config()->get('image')->topic_thumbnail['max']['w'].'_'.AWS_APP::config()->get('image')->topic_thumbnail['max']['h'], $this->topic_info['topic_pic']);?><?php } else { ?><?php echo G_STATIC_URL; ?>/common/topic-max-img.jpg<?php } ?>" alt="" id=""/>

	  </li>
      <li class="lsr">
        <p><span id="topic_title"><b class="tx" val="<?php echo $this->topic_info['topic_title']; ?>"><?php echo $this->topic_info['topic_title']; ?></b></span>
	
		</p>
        <div class="xfo">
		<span id="XFO_Text"><?php if ($this->topic_info['topic_description']) { echo nl2br($this->topic_info['topic_description']); } else { echo "请为话题编辑头像和详细说明..."; } ?>
		</span>
		
		</div>
		<div class="default_SZ default_xfo_txt">
	<?php if ($this->user_id) { ?>
	<a title="加关注" class="default_blue_but <?php if ($this->topic_info['has_focus']) { ?> cur <?php } ?>" href="javascript:;" onclick="focus_topic($(this), $(this), <?php echo $this->topic_info['topic_id']; ?>); return false;" title="<?php if ($this->topic_info['has_focus']) { ?>取消<?php } ?>关注"><?php if ($this->topic_info['has_focus']) { ?>取消<?php } ?>关注</a><?php }?>
	
			<a onclick="elementClickEvent.letter.default_anonymity(event);" title="设置" href="javascript:" class="default_set"></a>
			<p class="default_setPosition hide"><a title="话题日志" href="topic/<?php echo $this->topic_info['topic_title']; ?>">话题信息</a></p>
		</div>
      </li>
	
    </ul>
  </div>
  <div class="contant_left readns_discus dis_ListEntry index">
    <h2 class="c_title">
        <a style="font-weight:normal;font-size:12px;position:absolute;right:20px;" href="topic/<?php echo $this->topic_info['topic_title']; ?>">返回话题</a>
		<ul class="default_question">
			<li><a onclick="javascript:;" class="cur" href="javascript:;">话题日志</a></li>

	   </ul>
	</h2>
	
    <div id="layer_0"> 
      <div id="c_log_list"><p style="padding: 15px 0" align="center"><img src="<?php echo G_STATIC_URL; ?>/common/loading_b.gif" alt="" /></p></div>
      
      <div class="moreDiv" id="bp_log_more"><a href="#" class="mores">更多<em></em></a></div>
    </div>
  </div>
  <!--left_nav_e-->
</div>

<script type="text/javascript">
	var TOPIC_ID = '<?php echo $this->topic_info['topic_id']; ?>';
</script>
<script src="<?php echo G_STATIC_URL; ?>/js/topic.js" type="text/javascript"></script>

<?php TPL::output('global/footer.tpl.htm'); ?>